export const defaultData = {
  target_group_name: '',
  target_url: '',
  target_urls: [],
  task_config: {
    is_solo: false,
    promptly: true,
    is_periodic: true,
    use_increment: false,
    start_at: '',
    end_at: '',
    scan_period_start_time: '',
    scan_period_end_time: '',
    //告警类型
    warn_info: {
      availability: true,
      securityEvent: true,
      vul: true,
      risk_link: true,
      change_check: true
    },
    receiver_list: [], //告警人列表
    vul: {
      is_disabled: false,
      seconds: 604800,
    },
    securityEvent: {
      is_disabled: false,
      seconds: 43200,
    },
    availability: {
      is_disabled: false,
      seconds: 1800,
    },
    risk_link: {
      is_disabled: false,
      seconds: 43200,
    },
    change_check: {
      is_disabled: false,
      seconds: 43200
    }
  },
  job_config_map: {
    is_solo: false,
    vul: {
      crawler_depth: 3,
      crawler_max_page: 100,
      //下发任务时根据 整数/字符串=>系统模版/自定义模版
      //选择组件只支持字符串故转
      scan_profiles: ['1'],
      scan_custom_profiles: [],
    },
    risk_link: {
      crawler_depth: 3,
      crawler_max_page: 100,
    },
    securityEvent: {
      crawler_depth: 3,
      crawler_max_page: 100,
      include_plugins: [
        'black_links',
        'cryptojacking',
        'malscan',
        // 'seo_hijack',
        'privacy_disclosure',
        'keyword',
        // 'statistics',
      ],
      crawler_scope: 2,
      evidence: true,
      include_url: ['/'],
    },
    "change_check": {
      "crawler_depth": 1,
      "crawler_max_page": 50,
      "crawler_scope": 2,
      "include_url": ['/'],
      "exclude_url": [],
      "text_change_ratio": 0.1,
      "structure_change_ratio": 0.1,
      "resource_change_ratio": 0.1,
      "automatic_update_baseline_interval": 5,
      "is_automatic_update_baseline": true,
      "is_check_text": true,
      "is_check_structure": true,
      "is_check_resource": true
    },
    availability: {
      include_plugins: ['http_get', 'ping'],
      use_cloud: true,
      cloud_abnormal_node: 3
    },
    target_info: {
      enable: true,
    },
  },
  advance_config: {
    is_solo: false,
    requests_per_sec: 0,
    concurrency: 0,
    is_filter_by_query_key: true,
    request_timeout: 0,
    crawler_included_urls: [],
    crawler_excluded_urls: [],
    site_login: false,
    login_method: 'form',//form,json.cookie,headers
    login_json_action_url: '',
    login_json_postdata: '',
    login_form_action_url: '',
    login_form_postdata: '',
    is_http_auth_enabled: '',
    http_auth_username: '',
    http_auth_password: '',
    is_proxy_enabled: false,
    proxy_scheme: 'http',
    proxy_host: '',
    proxy_port: 80,
    is_proxy_need_auth: true,
    proxy_username: '',
    proxy_password: '',
    request_http_headers: '',
    request_cookie: '',
    request_user_agent: '',
    is_login_form_enabled: false,
    is_deep_malscan: false,
  },
};
export const defaultCheck = {
  'vul': 60 * 60,
  'securityEvent': 30 * 60,
  'availability': 15 * 60,
  'risk_link': 30 * 60,
  'change_check': 30 * 60
}
